package com.rtsp.poe.rtsplive555;

public class RTSPClient {
    private static final String TAG = "RTSPClient";

    static {
        System.loadLibrary("rtsp-lib");
    }

    public static native int start(String path, boolean forceTcp);

    public static native void stop();

    public static native void setRTSPCallback(RTSPCallback callback);
    public static native void setOpenAudio(boolean flag);//true:回调音频流， false：不回调；  默认false
    public static native void setDebug(boolean flag);//是否打印音视频流日志
    public static native void removeRTSPCallback();

    public static void Play(String path,boolean forceTcp){
        start(path, forceTcp);
    }

    public static void Stop(){
        stop();
    }
}